import Http from "@/http"

export function listApi() {
    return Http.get('sysconfig/list')
}

export function saveApi(params:any) {
    return params.id ? Http.put('sysconfig/update', params) : Http.post('sysconfig/add', params)
}

export function updateItemApi(id:number, data:{[key:string] : any}) {
    return Http.put('sysconfig/update/item/' + id, data)
}


export function deleteApi(id) {
    return Http.delete('sysconfig/delete/' + id)
}


export function configsApi() {
    return Http.get('sysconfig/configs')
}